<template>
  <avue-crud :data="Tabdata" :option="option"></avue-crud>
</template>
<script>
export default {
  props: {
    Tabdata: {
      type: [Object, Array],
      default: () => {},
    },
  },
  data() {
    return {
      data: [
        {
          name: "张三",
          sex: "男"
        },
        {
          name: "李四",
          sex: "女"
        }
      ],
      option: {
        index: true,
        indexLabel: "序号",
        page: false,
        align: "center",
        menu: false,
        header: false,
        menuAlign: "center",
        column: [
          {
            label: "商品名称",
            prop: "goodsName",
          },
          {
            label: "商品规格",
            prop: "goodsAttributeName",
          },
          {
            label: "商品单价",
            prop: "payGoodsPrice",
          },
          {
            label: "购买数量",
            prop: "payGoodsNum",
          },
        ],
      }
    };
  },
  methods: {}
};
</script>